package com.qwz.sharingjdbc.controller;

import com.qwz.sharingjdbc.pojo.Order;
import com.qwz.sharingjdbc.service.LearnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("order")
public class LearnController {

    @Autowired
    LearnService learnService;

    @GetMapping("add")
    public Order add(Order order){
        learnService.add(order);
        return order;
    }

}
